package feng.demo.entity;

public class Orditem {
    private  Integer itemid;
    private Order order;
    private Commodity commodity;
    private Integer num;
    private Double price;
    private User user;
    public Orditem() {
        this.order=new Order();
        this.commodity=new Commodity();
        this.user=new User();
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Integer getItemid() {
        return itemid;
    }

    public void setItemid(Integer itemid) {
        this.itemid = itemid;
    }

    public Order getOrder() {
        return order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }

    public Commodity getCommodity() {
        return commodity;
    }

    public void setCommodity(Commodity commodity) {
        this.commodity = commodity;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Orditem{" +
                "itemid=" + itemid +
                ", order=" + order +
                ", commodity=" + commodity +
                ", num=" + num +
                ", price=" + price +
                ", user=" + user +
                '}';
    }
}
